const app=getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    userInfo: {
      type: Object,
      value: {},
      observer(newVal, oldVal, changedPath) {
      }
    },
    income: {
      type: String,
      value: 0,
      observer(newVal, oldVal, changedPath) {
      }
    },
    commission_total: {
      type: String,
      value: 0,
      observer(newVal, oldVal, changedPath) {
      }
    },
    commission: {
      type: String,
      value: 0,
      observer(newVal, oldVal, changedPath) {
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
    go_balance(){
      wx.navigateTo({
        url: '/pages_user/balance_detail/balance_detail',
        success: function(res){
          // success
        },
        fail: function() {
          // fail
        },
        complete: function() {
          // complete
        }
      })
    },
    showwithdraw(){
      wx.navigateTo({
        url:'/pages_user/withdraw/withdraw?mon='+this.properties.userInfo.credit2
      })
    }
  }
})
